package cn.edu.qvtu.rj231.lms01;

import lombok.Data;

@Data
public class Callback {
    private boolean flag;//表示操作成功或失败
    private String msg;//表示返回操作结果的提示信息
    private  Object obj;//表示返回响应的数据列表
    public Callback() {
    }
    public Callback(boolean flag) {
        this.flag = flag;
    }
    public Callback(boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }
    public Callback(boolean flag, Object obj) {
        this.flag = flag;
        this.msg = msg;
        this.obj = obj;
    }
    public Callback(boolean flag, String msg, Object obj) {
        this.flag = flag;
        this.msg = msg;
        this.obj = obj;
    }
}
